package com.fzshang.shopping.commen.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author 冯政尚
 * @since 2020-04-13
 */
@ApiModel(value="Redis对象", description="")
public class Redis extends Model<Redis> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @TableField("user")
    private String user;

    @TableField("password")
    private String password;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Redis{" +
            "id=" + id +
            ", user=" + user +
            ", password=" + password +
        "}";
    }
}
